# -*- encoding: utf-8 -*-

from Common.mysql import db, ma
from sqlalchemy.dialects.mysql import LONGTEXT


# 新建表case_data
class BugCommentData(db.Model):
    __tablename__ = 'bug_comment_data'  # 数据库名称
    id = db.Column(db.Integer, primary_key=True)
    bug_id = db.Column(db.String(64))
    comment = db.Column(LONGTEXT)
    create_time = db.Column(db.DATETIME)
    create_user = db.Column(db.String(64))


class BugCommentDataSchema(ma.SQLAlchemyAutoSchema):
    class Meta:
        model = BugCommentData
